Docs: Infrastructure Automation and Dependency Cleanup#145
Open
kayhangultekin wants to merge 2 commits into
Open
Docs: Infrastructure Automation and Dependency Cleanup#145kayhangultekin wants to merge 2 commits into
kayhangultekin wants to merge 2 commits into
Conversation
added 2 commits
June 13, 2026 22:29
…doc build warnings. - Introduce Cleaning target directory: /Users/kayhan/Documents/projects/nanograv/holodeck-clean/docs/source/api_ref Scanning codebase: /Users/kayhan/Documents/projects/nanograv/holodeck-clean/holodeck Generating master index layout: /Users/kayhan/Documents/projects/nanograv/holodeck-clean/docs/source/api_ref/holodeck.rst ✨ API Reference Generation Complete! to programmatically generate API documentation, ensuring consistency and preventing namespace collisions. - Enable to improve docstring parsing and rendering, as has incompatibilities with python 3.12. - Refactor and clean up numerous docstrings across the package to resolve parsing errors and warnings. - Remove programmatically generated files from version control and add them to to maintain a clean repository. - Synchronize documentation structure by correcting references and establishing explicit label anchors.
…ck imports for documentation building. Builds cleanly from fresh clone in branch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR transitions the holodeck documentation build process from a static, error-prone manual setup to an automated, programmatic pipeline. This work resolves longstanding build warnings, cleans up stale documentation artifacts, and ensures the API reference is always in sync with the source code.
Key Changes:
docs/generate_api_ref.pyand updateddocs/docgen.shto handle API reference generation programmatically.rstfiles fromdocs/source/api_refand added the directory to.gitignore, reducing clutter.sphinx.ext.napoleonindocs/source/conf.pyto improve support for existing docstrings. (numpydocsis broken in Python 3.12).single_sources.py,hardening.py, anddetstats.pyto resolve build-time parsing errors.sympy,healpy, andhasasia) by implementingautodoc_mock_importsinconf.py.toctreehierarchy and consolidatedbiblio.rstandindex.rstreferences to ensure a clean, warning-free build.Testing Verification (Clean-Clone Build):
To ensure reproducibility and functionality, this PR was verified with a fresh repository clone. The following steps confirmed a successful build:
AI Use Statement
This documentation refactor and the accompanying automation scripts were developed with the assistance of Google Gemini Flash-Lite 3.1. The LLM was operated in a way such that it could not directly modify code or run any commands (i.e., I used Gemini web app and asked questions, pasted code fragments, uploaded error statements, etc.). Essentially, the LLM acted as a pair-programmer, assisting with debugging Sphinx configuration, refactoring legacy docstring formats, and refining this PR description.
Documentation can still be improved!
This PR is about improving the documentation build and the automation of existing documentation, not on the actual content of the documentation. Documentation can always be improved!
Impact
rstfiles is no longer required.(Note: The large volume of deletions in the PR is intentional, representing the removal of legacy, pre-generated API reference files in favor of the new dynamic generation pipeline.)
Status